////
////  shopViewController.swift
////  WxToutiao
////
////  Created by YQ05 on 2018/4/8.
////  Copyright © 2018年 yons. All rights reserved.
////
//
//import UIKit
//import Moya
//import PageMenu
//
//
//
//
//
//class shopViewController: UIViewController {
//
//    var pageMenu: CAPSPageMenu!
//    var controllers : [UIViewController] = []
//
//
//    var productsList = ["示例标题"]
//
//
//    @IBOutlet weak var pronameL: UILabel!
//    @IBOutlet weak var propriL: UILabel!
//    @IBOutlet weak var proregprL: UILabel!
//    @IBOutlet weak var ptitle: UILabel!
//
//    @IBAction func showshopListBtn(_ sender: UIButton) {
//        print("showlist")
//        //getprocateList()
//
//        print("下面的函数")
//
//
//        Procates.request{ (procates) in
//        //   let proarr = procates?.count.description
////
////            self.ptitle.text = "返回的数据结果" + proarr!
//
//
//            //print(products as Any)
//
//        }
//    }
//
//    @IBAction func showproBtn(_ sender: UIButton) {
//        Procates.request{ (procates) in
////        let proarr = procates?.count.description
////        self.ptitle.text = "返回的数据结果" + proarr!
////            print(procates as Any)
//
////        self.controllers = procates!.map{_ in
////          let vc = self.storyboard?.instantiateViewController(withIdentifier: "SBID_PROCATELIST") as! shopListController
////
////                           // vc.title = $0
////
////                        vc.title = "8"
////                            return vc
////                        }
//            let param : [CAPSPageMenuOption]  = [
//                        .menuItemSeparatorWidth(4.3),
//                        .scrollMenuBackgroundColor(UIColor.white),
//                        .viewBackgroundColor(UIColor(red: 247.0/255.0, green: 247.0/255.0, blue: 247.0/255.0, alpha: 1.0)),
//                        .bottomMenuHairlineColor(UIColor(red: 20.0/255.0, green: 20.0/255.0, blue: 20.0/255.0, alpha: 0.1)),
//                        .selectionIndicatorColor(UIColor(red: 18.0/255.0, green: 150.0/255.0, blue: 225.0/255.0, alpha: 1.0)),
//                        .menuMargin(20.0),
//                        .menuHeight(40.0),
//                        .selectedMenuItemLabelColor(UIColor(red: 18.0/255.0, green: 150.0/255.0, blue: 225.0/255.0, alpha: 1.0)),
//                        .unselectedMenuItemLabelColor(UIColor(red: 40.0/255.0, green: 40.0/255.0, blue: 40.0/255.0, alpha: 1.0)),
//                        .menuItemFont(UIFont(name: "HelveticaNeue-Medium", size: 14.0)!),
//                        .useMenuLikeSegmentedControl(false),
//                        .menuItemSeparatorRoundEdges(true),
//                        .selectionIndicatorHeight(2.0),
//                        .menuItemSeparatorPercentageHeight(0.1)
//                    ]
//
//                    let frame = CGRect(x: 0, y: 20 + 70, width: self.view.frame.width, height: self.view.frame.height - 20 - 70)
//
//                    self.pageMenu = CAPSPageMenu(viewControllers: self.controllers, frame: frame, pageMenuOptions: param)
//
//                    self.view.addSubview(self.pageMenu.view)
//                }
//
//
////        Procates.request{ (procates) in
////        self.controllers = procates!.map{
////            let vc = self.storyboard?.instantiateViewController(withIdentifier: "SBID_PROCATELIST") as! shopListController
////
////            //vc.title = $0.name
////            vc.title = "56"
////
////            return vc
////        }
////        let param : [CAPSPageMenuOption]  = [
////            .menuItemSeparatorWidth(4.3),
////            .scrollMenuBackgroundColor(UIColor.white),
////            .viewBackgroundColor(UIColor(red: 247.0/255.0, green: 247.0/255.0, blue: 247.0/255.0, alpha: 1.0)),
////            .bottomMenuHairlineColor(UIColor(red: 20.0/255.0, green: 20.0/255.0, blue: 20.0/255.0, alpha: 0.1)),
////            .selectionIndicatorColor(UIColor(red: 18.0/255.0, green: 150.0/255.0, blue: 225.0/255.0, alpha: 1.0)),
////            .menuMargin(20.0),
////            .menuHeight(40.0),
////            .selectedMenuItemLabelColor(UIColor(red: 18.0/255.0, green: 150.0/255.0, blue: 225.0/255.0, alpha: 1.0)),
////            .unselectedMenuItemLabelColor(UIColor(red: 40.0/255.0, green: 40.0/255.0, blue: 40.0/255.0, alpha: 1.0)),
////            .menuItemFont(UIFont(name: "HelveticaNeue-Medium", size: 14.0)!),
////            .useMenuLikeSegmentedControl(false),
////            .menuItemSeparatorRoundEdges(true),
////            .selectionIndicatorHeight(2.0),
////            .menuItemSeparatorPercentageHeight(0.1)
////        ]
////
////        let frame = CGRect(x: 0, y: 20 + 70, width: self.view.frame.width, height: self.view.frame.height - 20 - 70)
////
////        self.pageMenu = CAPSPageMenu(viewControllers: self.controllers, frame: frame, pageMenuOptions: param)
////
////        self.view.addSubview(self.pageMenu.view)
////    }
//
//    }
//
//
//    override func viewDidLoad() {
//        super.viewDidLoad()
//        print("载入函数")
//       // getshopList(id: 38)
//       // print("//载入函数")
//        // Do any additional setup after loading the view.
//
//
//
//
//
//
//    }
//
//    override func didReceiveMemoryWarning() {
//        super.didReceiveMemoryWarning()
//        // Dispose of any resources that can be recreated.
//    }
//
//
//    /*
//    // MARK: - Navigation
//
//    // In a storyboard-based application, you will often want to do a little preparation before navigation
//    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
//        // Get the new view controller using segue.destinationViewController.
//        // Pass the selected object to the new view controller.
//    }
//    */
//
//}




//
//  ViewController.swift
//  WxToutiao
//
//  Created by yons on 2017/5/20.
//  Copyright © 2017年 yons. All rights reserved.
//

import UIKit
import Moya
import PageMenu

class shopViewController: UIViewController {

    var pageMenu: CAPSPageMenu!
    var controllers : [UIViewController] = []
    
//    @IBAction func showPageBtn(_ sender: UIButton) {
//        print("我被点击了")
//        getprolisttest { (pros) in
//            print("分类结束")
//        }
//        //getshopList(id: 42)
//    }
    
    
//    func showMenu()  {
//        ProductCat.request  { (cates) in
//
//            self.controllers = cates!.map{
//                let vc = self.storyboard?.instantiateViewController(withIdentifier: "SBID_NEWSLIST") as! shopListController
//
//
//
//                vc.title = $0.name
////                vc.parentNavi = self.navigationController
////                vc.id = $0.id
//
//                return vc
//            }
//
//
//            let param : [CAPSPageMenuOption] = [
//                .menuItemSeparatorWidth(4.3),
//                .scrollMenuBackgroundColor(UIColor.white),
//                .viewBackgroundColor(UIColor(red: 247.0/255.0, green: 247.0/255.0, blue: 247.0/255.0, alpha: 1.0)),
//                .bottomMenuHairlineColor(UIColor(red: 20.0/255.0, green: 20.0/255.0, blue: 20.0/255.0, alpha: 0.1)),
//                .selectionIndicatorColor(UIColor(red: 18.0/255.0, green: 150.0/255.0, blue: 225.0/255.0, alpha: 1.0)),
//                .menuMargin(20.0),
//                .menuHeight(40.0),
//                .selectedMenuItemLabelColor(UIColor(red: 18.0/255.0, green: 150.0/255.0, blue: 225.0/255.0, alpha: 1.0)),
//                .unselectedMenuItemLabelColor(UIColor(red: 40.0/255.0, green: 40.0/255.0, blue: 40.0/255.0, alpha: 1.0)),
//                .menuItemFont(UIFont(name: "HelveticaNeue-Medium", size: 14.0)!),
//                .useMenuLikeSegmentedControl(false),
//                .menuItemSeparatorRoundEdges(true),
//                .selectionIndicatorHeight(2.0),
//                .menuItemSeparatorPercentageHeight(0.1)
//            ]
//
//            let frame = CGRect(x: 0, y: 20 + 70, width: self.view.frame.width, height: self.view.frame.height - 20 - 70)
//
//            self.pageMenu = CAPSPageMenu(viewControllers: self.controllers, frame: frame, pageMenuOptions: param)
//
//            self.view.addSubview(self.pageMenu.view)
//
//
//        }
//
//    }
    
    
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        //navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: .plain, target: self, action: nil)
        //getshopList(id: 38)
        
        //showMenu()
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    
}
